<?php

    require_once dirname(dirname(__FILE__)) . '/config/config.php';
    require_once DOCUMENT_ROOT . DIR_SHARED_DAO . 'dao_tran_history.php';

    /**
     * User: Viet Anh
     * Date: 06/06/2014
     * Time: 19:56
     */
    class api_tran_history
    {

        public static function get_tran_history_of_user($user_id)
        {
            $dao_tran_history = new dao_tran_history();

            return $dao_tran_history->get_tran_history_of_user($user_id);
        }

        public static function get_action_name($action_id)
        {
            if ($action_id == 3) {
                return "Spend";
            } elseif ($action_id == 4) {
                return "Receive";
            }
        }
    }